﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMVC.Models.LogOnModel>" %>
<asp:Content ID="registerMeta" ContentPlaceHolderID="Head" runat="server">
     <meta name="description" content="<%=ViewResources.SharedStrings.DefaultMetaDescription %>" />
 <meta name="keywords" content="<%=ViewResources.SharedStrings.DefaultMetaKeywords %>" />
</asp:Content>
<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Log On
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
<div id="default-content">
    <div id="login-page-cont">
    <h2><%=ViewResources.AccountStrings.LoginPageHead %></h2>
    <% using (Html.BeginForm()) { %>
            <% if (!this.ViewData.ModelState.IsValid)
       { %>
            <div class="validation-summary-errors">
                <span>
                    <%= ViewResources.AccountStrings.ValidationLoginFailed%>
                </span>
            </div>
        <%} %>
        <div id="login-page-inputs">
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.UserName) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.UserName, new { @class = "login-page" })%>
                    <%= Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Password) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.Password, new { @class = "login-page" })%>
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </div>
                <div class="editor-label">
                    <%= Html.CheckBoxFor(m => m.RememberMe) %>
                    <%= Html.LabelFor(m => m.RememberMe) %>
                </div>
                <p class="right-align">
                    <input type="submit" value="<%=ViewResources.AccountStrings.SignInLinkText %>" />
                </p>
        </div>
    <% } %>
    </div>
</div>

</asp:Content>
